package com.wuliang.generate.common.sharding.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author WuLiang
 */
@Getter
@Setter
@Primary
@Component
@ConfigurationProperties(prefix = "spring")
public class DataSourceConfigProperties {

    private Map<String, DataSourceProperties> dataSource;

    private String enableWhich = "system";

}
